package or.exa.cangguan.mapper;

import or.exa.cangguan.common.Page;
import or.exa.cangguan.entity.dto.InOperationDto;
import or.exa.cangguan.entity.po.InOperation;
import or.exa.cangguan.entity.vo.InOperationVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InOperationMapper {
    int deleteByPrimaryKey(Integer id);
    int deleteByInId(Integer inId);

    int selectCount(InOperationVo inOperationVo);

    String selectByInId(@Param("inId") Integer inId);

    Integer selectIdByInId(@Param("inId") Integer inId);

    String selectStatus(@Param("inId") Integer inId);

    int insert(InOperation record);

    int insertSelective(InOperation record);

    List<InOperationDto> selectByPrimaryKey(@Param("inOperationVo") InOperationVo inOperationVo,
                                            @Param("page") Page page);

    int insertId(Integer id);

    int updateByPrimaryKeySelective(InOperation record);

    int updateByPrimaryKey(InOperation record);

    int updateStatus(@Param("inId") Integer inId,@Param("status") String status);
}